package com.ys.erp.stage_user_service.bean.condition;

import com.ys.erp.framework.annotation.valid.DateValid;
import com.ys.erp.framework.condition.BasePageCondition;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
public class UserPulseCondition {

    @EqualsAndHashCode(callSuper = true)
    @Data
    @Schema(description = "分页充值幺豆明细请求对象")
    public static  class PageInPulseRecordCon extends BasePageCondition {

        @Schema(description = "用户id")
        private  Long userId;

        @Schema(description = "起始充值时间")
        @DateValid
        private String recordStartDate;

        @Schema(description = "结束充值时间")
        @DateValid
        private String recordEndDate;

        @Schema(description = "充值类型，")
        private String inOutType;

    }

    @Data
    @Schema(description = "充值或扣除用户幺豆请求对象")
    public static class InOrOutUserPulseCon {

        @NotNull
        @Schema(description = "用户id")
        private Long userId;

        @Schema(description = "充值或扣除金额")
        @NotBlank
        private String money;

        @Schema(description = "备注")
        private String remark;

    }

}
